/**
 *
 * @properties={typeid:24,uuid:"4359E8ED-939C-457C-ABE5-EE2C2F8AA907"}
 */
function Iniciar() 
{
	globals.gtotal_varios=0.00;
	globals.gtotal_valores=0.00;
	globals.gtotal_saldo=0.00;
	totales_valores();
	totales_varios();
	}

/**
 *
 * @properties={typeid:24,uuid:"9DBCBD9F-9FEB-44A1-936E-5BFB451966EF"}
 */
function totales_valores() 
{
	globals.gtotal_valores = 0
	for ( var i = 1 ; i <= rec_cabecera_to_rec_detalle.getSize(); i++ )
	{
		rec_cabecera_to_rec_detalle.setSelectedIndex(i)
		globals.gtotal_valores += rec_cabecera_to_rec_detalle.importe 
	} 
}

/**
 *
 * @properties={typeid:24,uuid:"198218A3-DB94-47EE-9AAA-601ECA49242E"}
 */
function totales_varios() 
{
	globals.gtotal_varios = 0;
	for ( var i = 1 ; i <= rec_cabecera_to_rec_detalle_varios.getSize(); i++ )
	{
		rec_cabecera_to_rec_detalle_varios.setSelectedIndex(i);
		globals.gtotal_varios += rec_cabecera_to_rec_detalle_varios.importe
	}
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"49205D26-B9A6-4989-B1FA-938AFB6735E8"}
 */
function imprimir(event) 
{
	forms.ing_varios_imp.controller.showPrintPreview(true);
}

/**
 * @properties={typeid:24,uuid:"FD266BB0-0818-41E7-B2A7-9D113F15E0C7"}
 */
function pdf()
{
	globals.metodoPdf('ing_varios_imp','Ingresos Varios',false)
}
